package module{
	
	import component.Image;
	
	import flash.display.Sprite;
	import flash.events.MouseEvent;
	
	public class MapBlock extends Sprite{
		
		public var img:Image;
		
		public function MapBlock(url:String){
			img = addChild(new Image()) as Image;
			img.load(url);
			img.x = -img.width/2;
			img.y = -img.height/2;
			
			addEventListener(MouseEvent.ROLL_OUT,onOut);
			addEventListener(MouseEvent.ROLL_OVER,onOver);
		}
		
		private function onOut(e:MouseEvent):void{
			 
		}
		
		private function onOver(e:MouseEvent):void{
		 
		}
		
	}
}